<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%language}}".
 *
 * @property integer $id
 * @property string $code
 * @property string $country
 * @property string $country_cn
 * @property string $country_big5
 * @property string $language_cn
 * @property string $language
 */
class Language extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%language}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['code'], 'string', 'max' => 50],
            [['country', 'country_cn', 'country_big5'], 'string', 'max' => 100],
            [['language_cn', 'language'], 'string', 'max' => 30]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'code' => 'Code',
            'country' => 'Country',
            'country_cn' => 'Country Cn',
            'country_big5' => 'Country Big5',
            'language_cn' => 'Language Cn',
            'language' => 'Language',
        ];
    }
}
